@import "config";

html, body {
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none;
}

.main_audio {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #363b47;
    .close_btn {
        .ab-position_normal(40px, 40px);
        text-indent: -9999px;
        overflow: hidden;
        z-index: 10;
        right: 9px;
        top: 9px;
        &:after {
            .icon1(-200px 0);
        }
    }
    .scene {
        position: relative;
        width: 100%;
        height: 100%;
        opacity: 0;
    }
    .scene_1 {
        header {
            height: 100px;
            background: -webkit-linear-gradient(top, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0));
            background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0));
            position: relative;
            padding: 9px;
            .anchor_info {
                position: relative;
                width: 59%;
                height: 45px;
                background: -webkit-linear-gradient(left, rgba(22, 23, 28, .8), rgba(22, 23, 28, .5));
                background: linear-gradient(to right, rgba(22, 23, 28, .8), rgba(22, 23, 28, .5));
                .border-radius(4px);
                overflow: hidden;
                padding-top: 5px;
                img {
                    position: absolute;
                    width: 36px;
                    height: 36px;
                    .border-radius(100%);
                    top: 50%;
                    margin-top: -18px;
                    left: 5px;
                }
                h3 {
                    color: @color-white;
                    font-size: 12px;
                    width: 42%;
                    line-height: 18px;
                    margin-left: 44px;
                }
                a {
                    .ab-position_normal(61px, 25px);
                    &:before {
                        .icon2(100px, 50px, -50px -50px);
                        left: 50%;
                        top: 50%;
                        margin-left: -50px;
                        margin-top: -25px;
                    }
                    top: 50%;
                    margin-top: -12px;
                    right: 9px;
                }
            }
            .new_user {
                position: relative;
                width: 59%;
                height: 20px;
                line-height: 20px;
                color: @color-white;
                padding: 0 4px;
                font-size: 11px;
                background: -webkit-linear-gradient(left, rgba(149, 44, 69, .95), rgba(149, 44, 69, .1));
                background: linear-gradient(to right, rgba(149, 44, 69, .95), rgba(149, 44, 69, .1));
                .border-radius(4px);
                overflow: hidden;
            }
            .brand {
                .ab-position_normal(56px, 33px);
                .border-radius(4px);
                overflow: hidden;
                top: 15px;
                right: 56px;
                font-size: 10px;
                text-align: center;
                h3 {
                    color: #1e2027;
                    line-height: 15px;
                    background: #d2d2d4;
                }
                h4 {
                    color: #d3d3d5;
                    border: 1px solid #676a6f;
                    line-height: 17px;
                    border-top: 0;
                    border-bottom-left-radius: 4px;
                    -webkit-border-bottom-left-radius: 4px;
                    border-bottom-right-radius: 4px;
                    -webkit-border-bottom-right-radius: 4px;
                }
            }
        }
        .cover {
            .ab-position_normal(100%, 100%);
            left: 0;
            top: 0;
            background: transparent;
            z-index: 1;
        }
        .p_list {
            .ab-position_normal(100%, 68%);
            left: 0;
            bottom: 0;
            overflow: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overflow-scrolling: touch;
            background: #f4f4f4;
            z-index: 3;
            .transition();
            .transform(translate3d(0, 100%, 0));
            &.active {
                .transform(translate3d(0, 0, 0));
            }
            section {
                background: @color-white;
                margin-bottom: 9px;
                position: relative;
                overflow-x: hidden;
                h2 {
                    position: relative;
                    font-size: 14px;
                    height: 36px;
                    line-height: 36px;
                    padding-left: 32px;
                    border-bottom: 1px solid @color-light-gray;
                    overflow: hidden;
                    strong {
                        color: @color-red;
                        margin-left: 6px;
                    }
                }
            }
            .hot_items {
                h2 {
                    border-bottom: 0;
                    &:before {
                        .icon1(-200px -50px);
                        left: -4px;
                        margin-left: 0;
                    }
                }
                ul {
                    overflow: hidden;
                    overflow-x: auto;
                    -webkit-overflow-scrolling: touch;
                    overflow-scrolling: touch;
                    white-space: nowrap;
                }
                li {
                    display: inline-block;
                    width: 120px;
                    position: relative;
                    img {
                        width: 120px;
                        height: 120px;
                    }
                    .p_price {
                        padding-left: 6px;
                        font-size: 16px;
                        line-height: 36px;
                        color: @color-red;
                    }
                    .p_flag {
                        .ab-position_normal(26px, 12px);
                        right: 6px;
                        top: 6px;
                        font-size: 8px;
                        line-height: 12px;
                        text-align: center;
                        background: #ff2851;
                        color: @color-white;
                    }
                }
            }
            .all_items {
                h2 {
                    &:before {
                        .icon1(-150px -50px);
                        left: -4px;
                        margin-left: 0;
                    }
                }
                li {
                    position: relative;
                    padding: 10px 12px;
                    border-bottom: 1px solid @color-light-gray;
                    .p_flag {
                        position: absolute;
                        width: 20px;
                        height: 20px;
                        line-height: 20px;
                        text-align: center;
                        font-size: 12px;
                        color: @color-white;
                        background: @color-black;
                        border-bottom-right-radius: 2px;
                        -webkit-border-bottom-right-radius: 2px;
                        &.hot {
                            background: @color-red;
                        }
                    }
                    img {
                        width: 100px;
                        height: 100px;
                        float: left;
                    }
                    .p_info {
                        margin-left: 110px;
                        position: relative;
                        height: 100px;
                    }
                    h3 {
                        font-size: 14px;
                        line-height: 20px;
                        overflow: hidden;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        word-break: break-all;
                        margin-bottom: 2px;
                    }
                    h4 {
                        font-size: 16px;
                        line-height: 24px;
                        color: @color-red;
                    }
                    .p_bottom {
                        position: absolute;
                        width: 100%;
                        height: 22px;
                        left: 0;
                        bottom: 0;
                        font-size: 12px;
                        span {
                            color: #aaaeb0;
                            padding-top: 4px;
                        }
                        a {
                            font-size: 10px;
                            width: 68px;
                            color: @color-red;
                            text-align: center;
                            line-height: 22px;
                            position: relative;
                            &:before {
                                .ab-position-border(@color-red);
                                .border-radius(11px);
                            }
                        }
                    }
                }
            }

        }
        .interactive {
            .middle {
                .ab-position_normal(100%, 36%);
                left: 0;
                bottom: 60px;
                font-size: 12px;
                .customer_wrap {
                    max-width: 56%;
                    .ab-position_normal(100%, 144px);
                    bottom: 0;
                    left: 0;
                    padding-left: 12px;
                    overflow: hidden;
                    h3 {
                        .ab-position_normal(100%, 24px);
                        left: 0;
                        top: 0;
                        color: #ffffff;
                        z-index: 2;
                        span {
                            display: inline-block;
                            max-width: 100%;
                            .border-radius(2px);
                            padding: 0 10px;
                            height: 24px;
                            line-height: 24px;
                            background: rgba(211, 82, 36, .95);
                        }
                        -webkit-animation: leftIn .6s;
                        animation: leftIn .6s;
                        &.remove {
                            -webkit-animation: fadeOut .4s;
                            animation: fadeOut .4s;
                            -webkit-animation-fill-mode: forwards;
                        }
                    }
                    ul {
                        position: absolute;
                        width: 100%;
                        max-height: 144px;
                        bottom: 0;
                        left: 0;
                        padding-left: 12px;
                        overflow: hidden;
                    }
                    li {
                        margin-bottom: 6px;
                        &:last-of-type {
                            margin-bottom: 0;
                        }
                        -webkit-animation: fadeIn 1s;
                        animation: fadeIn 1s;
                        p {
                            padding: 3px 10px;
                            line-height: 18px;
                            .border-radius(2px);
                            background-color: rgba(255, 255, 255, 0.85);
                            float: left;
                        }
                    }
                }
                .canvas {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                }
            }
            .bottom {
                .ab-position_normal(100%, 50px);
                bottom: 0;
                padding: 0 9px;
                .btn {
                    position: relative;
                    width: 38px;
                    height: 38px;
                    margin-left: 9px;
                    background: rgba(43, 47, 57, .8);
                    .border-radius(100%);
                    &.share_btn {
                        &:before {
                            .icon1(-100px 0);
                        }
                    }
                    &.gift_btn {
                        &:before {
                            .icon1(-150px 0);
                        }
                    }
                    &.zan_btn {
                        &:before {
                            .icon1(-50px 0);
                        }
                    }
                }
                .link_btn {
                    width: 50px;
                    height: 50px;
                    position: relative;
                    top: -6px;
                    &:before {
                        .icon1(0 0);
                    }
                }
                input {
                    font-size: 12px;
                    .border-radius(4px);
                    background: rgba(43, 47, 57, .8);
                    margin-left: 9px;
                    border: 0;
                    height: 38px;
                    line-height: 18px;
                    padding: 10px 6px;
                    color: @color-white;
                    width: 100%;
                }
            }
        }
    }
    .scene_2 {
        main {
            .ab-position_normal(100%, 68%);
            left: 0;
            bottom: 0;
            padding-top: 10%;
            overflow: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overflow-scrolling: touch;
        }
        section {
            background: rgba(255, 255, 255, 1);
            margin: 6px 9px;
            .border-radius(4px);
            position: relative;
            overflow-x: hidden;
            h2 {
                position: relative;
                font-size: 14px;
                line-height: 20px;
                margin-bottom: 6px;
                padding-left: 24px;
            }
        }
        .anchor_introduction {
            &:before {
                .ab-position(100%, 3px);
                top: 0;
                left: 0;
                background: -webkit-linear-gradient(left, #1fc1e5, #0c3bdf);
                background: linear-gradient(to right, #1fc1e5, #0c3bdf);
            }
            padding: 12px;
            h2 {
                color: #1c8ae8;
                &:before {
                    .icon2(20px, 20px, -15px -65px);
                    left: 0;
                    top: 50%;
                    margin-top: -10px;
                }
            }
            p {
                font-size: 12px;
                color: @color-deep-gray;
                text-align: justify;
            }
        }
        .recommend_product {
            padding: 15px 10px;
            .p_wrap {
                position: relative;
                &:before {
                    .ab-position-bg(@color-light-gray, 1px, 50px);
                    left: 50%;
                    top: 0;
                }
            }
            .p_item {
                width: 48%;
                &:nth-of-type(odd) {
                    float: left;
                }
                &:nth-of-type(even) {
                    float: right;
                }
                img {
                    float: right;
                    width: 50px;
                    height: 50px;
                }
                h3 {
                    margin-right: 56px;
                    font-size: 13px;
                }
                h4 {
                    margin-right: 56px;
                    font-size: 12px;
                    color: @color-gray;
                }
            }
        }
        .time_line {
            padding: 12px;
            &:before {
                .ab-position(100%, 3px);
                top: 0;
                left: 0;
                background: -webkit-linear-gradient(left, #f55085, #f42952);
                background: linear-gradient(to right, #f55085, #f42952);
            }
            h2 {
                color: @color-red;
                &:before {
                    .icon2(20px, 20px, -265px -15px);
                    left: 0;
                    top: 50%;
                    margin-top: -10px;
                }
            }
            ul {
                border-left: 1px solid #e5e5e5;
                margin-left: 6px;
            }
            li {
                border-bottom: 1px solid #e5e5e5;
                margin: 0 0 12px 10px;
                padding-bottom: 12px;
                position: relative;
                &:before {
                    .ab-position-bg(@color-white, 16px, 16px);
                    top: 0;
                    left: -18px;
                }
                time {
                    display: block;
                    color: @color-deep-gray;
                    font-size: 12px;
                    line-height: 16px;
                    margin: 0;
                    position: relative;
                    z-index: 2;
                    &:before {
                        .ab-position(9px, 9px);
                        border: 3px solid #fb3058;
                        top: 50%;
                        margin-top: -4px;
                        left: -15px;
                        .border-radius(100%);
                    }
                }
                h3 {
                    font-size: 14px;
                    line-height: 24px;
                }
            }
        }
    }
    .swiper-container {
        width: 100%;
        height: 100%;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes leftIn {
    from {
        opacity: 0;
        .transform(translate3d(-100px, 0, 0));
    }
    to {
        opacity: 1;
        .transform(translate3d(0, 0, 0));
    }
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}